<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core"  prefix="c"%>
<%@ taglib prefix="f" uri="http://www.springframework.org/tags/form"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%
	String path=request.getContextPath();
%>    

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
	<link href="/resources/css/bootstrap-4.3.1/css/bootstrap.css" rel="stylesheet">
	<script type="text/javascript" src="/resources/js/jquery-3.2.1/jquery.js"></script>
	<script type="text/javascript" src="/resources/js/jqueryvalidate/jquery.validate.js"></script>
	<script type="text/javascript" src="/resources/js/jqueryvalidate/localization/messages_zh.js"></script>
	<script type="text/javascript" src="/resources/css/bootstrap-4.3.1/js/bootstrap.js"></script>

<style type="text/css">
	span{
		color:red;
	}
</style>
</head>
<body>
	<f:form name = "formAdd" method="post" action="addScore" modelAttribute = "score">
		<input type = "hidden" name = "aid" value = "${applicant.id }">
		姓名：<div class="form-group">
		    <label for="name">姓名</label>
		    <input name="name" class="form-control" value = "${applicant.name }"/>
	  	</div>
		考试项目
			<f:select path="jid" class = "form-control">
			  <c:forEach items="${jobList }" var="job">
			  	<option value = "${job.id }">${job.name }</option>
			  </c:forEach>
			</f:select>	
			<f:errors path = "jid"></f:errors>
	
		<div class="form-group">
		    <label for="name">分数</label>
		    <f:input path="perScore" class="form-control"  />
		    <f:errors path = "perScore" ></f:errors>
	  	</div>
		 <input type = "submit" value = "添加" class="btn btn-primary" >
	
	</f:form>



</body>
</html>